<?php
abstract class m_form_extends_Checker
{
    private $formValue;
    private $errorMessage;

    /**
     * Set form values for success actions
     *
     * @param array $formValues
     * @return m_form_extends_Checker
     */
    public function setFormValue($formValue)
    {
        $this->formValue = $formValue;
        return $this;
    }

    public function setErrorMessage($message)
    {
        $this->errorMessage = $message;
        return $this;
    }

    public function getErrorMessage()
    {
        return $this->errorMessage;
    }

    abstract public function check($formValue);
}